﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using Autofac;

namespace Bizbase.DependencyInjection
{
    public static class Resolver
    {
        private static IContainer GetContainer()
        {
            return Ioc.Container;
        }

        public static T GetService<T>()
        {
            return GetContainer().Resolve<T>();
        }
    }
}
